package jdbctemplate;

/**
 * 一组数据对应的 Bean 对象，他要与一个实现 Mapper<T> 接口的对象配合使用
 */
public class Student {
    private int id;
    private int age;
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return this.getId() + " - " + this.getName() + " - " + this.getAge();
    }
}
